/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.fee.entity;

import com.google.common.collect.Lists;
import com.jeeplus.common.utils.excel.annotation.ExcelField;
import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.modules.sys.entity.Office;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 计费协议数据源Entity
 * @author cyf
 * @version 2016-11-21
 */
public class FeeData extends DataEntity<FeeData> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 数据源名称
	private Agreement agreement;		// 计费协议
	private Office office;		// 机构
	private String ruleIds;		//选中的计费规则的id组合 按逗号分割

	private List<DataCode> feeDataCodeList = Lists.newArrayList();		// 子表列表

	// 后期添加
	private Consignor feeConsignor;		// 结算方

	public FeeData() {
		super();
	}

	public FeeData(String id){
		super(id);
	}

	@ExcelField(title="数据源名称", align=2, sort=7)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	

	@ExcelField(title="计费协议", align=2, sort=8)
	public Agreement getAgreement() {
		return agreement;
	}

	public void setAgreement(Agreement agreement) {
		this.agreement = agreement;
	}

	@NotNull(message="机构不能为空")
	@ExcelField(title="机构", align=2, sort=9)
	public Office getOffice() {
		return office;
	}

	public void setOffice(Office office) {
		this.office = office;
	}

	public String getRuleIds() {
		return ruleIds;
	}

	public void setRuleIds(String ruleIds) {
		this.ruleIds = ruleIds;
	}

	public List<DataCode> getFeeDataCodeList() {
		return feeDataCodeList;
	}

	public void setFeeDataCodeList(List<DataCode> feeDataCodeList) {
		this.feeDataCodeList = feeDataCodeList;
	}

	@ExcelField(title="结算方", align=2, sort=8)
	public Consignor getFeeConsignor() {
		return feeConsignor;
	}

	public void setFeeConsignor(Consignor feeConsignor) {
		this.feeConsignor = feeConsignor;
	}
}